QT       += core gui websockets webenginewidgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

RC_ICONS = app.ico

INCLUDEPATH += $$PWD/UserLogin
INCLUDEPATH += $$PWD/MainWindow
INCLUDEPATH += $$PWD/Plugins/Agora_RTC


SOURCES += \
    MainWindow/customcalendarwidget.cpp \
    MainWindow/coursecard.cpp \
    MainWindow/changepassworddialog.cpp \
    MainWindow/feedbackdialog.cpp \
    UserLogin/cuserlogin.cpp \
    UserLogin/extendedcombobox.cpp \
    common/common.cpp \
    config/Config.cpp \
    MainWindow/courseclient.cpp \
    MainWindow/coursecard_.cpp \
    main.cpp \
    MainWindow/mainwindow.cpp \
    network/customthread.cpp

HEADERS += \
    MainWindow/customcalendarwidget.h \
    MainWindow/coursecard.h \
    MainWindow/changepassworddialog.h \
    MainWindow/feedbackdialog.h \
    UserLogin/cuserlogin.h \
    UserLogin/extendedcombobox.h \
    MainWindow/mainwindow.h \
    common/common.h \
    config/Config.h \
    MainWindow/courseclient.h \
    MainWindow/coursecard_.h \
    network/customthread.h

FORMS += \
    MainWindow/changepassworddialog.ui \
    MainWindow/feedbackdialog.ui \
    UserLogin/cuserlogin.ui \
    MainWindow/mainwindow.ui

LIBS += -L$$PWD/Plugins/Agora_RTC/audio/x86_64 -lagora_rtc_sdk.dll
LIBS += -L$$PWD/Plugins/Agora_RTC/video/x86_64 -lagora_rtc_sdk.dll


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc


QMAKE_PROJECT_DEPTH = 0
QMAKE_CXXFLAGS += /utf-8
